package com.atguigu07._abstract;

/**
 * ClassName: Person
 * Package: com.atguigu07._abstract
 * Description:
 *
 * @Author ZY
 * @Create 23:08
 * @Version 1.0
 */
public abstract class Person { //抽象类

    String name;
    int age;

    public Person(){}

    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }

    public abstract void eat(); // 抽象方法

    public void sleep(){
        System.out.println("人睡觉");
    }

}
